package com.edu.juc.lock.lockUpdate;

public class LockBigTest {
    static Object o = new Object();

    public static void main(String[] args) {
        new Thread(() -> {
            // 锁粗化
            synchronized (o) {
                System.out.println("Hello World");
            }
            synchronized (o) {
                System.out.println("Hello World2");
            }
            synchronized (o) {
                System.out.println("Hello World3");
            }
        }).start();
    }
}
